package logic.UIProxyBag.componentProxy
{
	import common.core.UIService;
	import common.manager.GUI;
	
	import logic.def.Def;
	import logic.manager.UIProxy;
	import logic.ui.componentInfoMed.ListInfoMed;
	import logic.ui.componentInfoMed.SimpleBtnInfoMed;
	import logic.ui.componentInfoMed.ToggleButtonInfoMed;
	
	public class ToggleButtonProxy extends UIService
	{
		public function ToggleButtonProxy()
		{
		}
		
		public override function destory():void
		{
			
		}
		
		public override function start(value:* = null):void
		{
			UIProxy.stopAll();
			
			var ui : ToggleButtonInfoMed = new ToggleButtonInfoMed;
			
			GUI.add(ToggleButtonInfoMed.NAME,ui);
			GUI.setAlgin(ToggleButtonInfoMed.NAME,GUI.ALIGN_RIGHT,GUI.ALIGN_TOP);
			GUI.setOffest(ToggleButtonInfoMed.NAME,Def.Offset_SimpleBtn_X,Def.Offset_SimpleBtn_Y);
			
			GUI.open(ToggleButtonInfoMed.NAME);
		}
		
		public override function stop():void
		{
			GUI.remove(ToggleButtonInfoMed.NAME);
		}
	}
}